]> dgit.raspbian.org Git - ostree.git/commit
trivial-httpd: Fix const-correctness of slash pointer
authorKhem Raj <khem.raj@oss.qualcomm.com>
Thu, 9 Apr 2026 23:28:07 +0000 (16:28 -0700)
committerJoseph Marrero Corchado <jmarrero@redhat.com>
Wed, 24 Jun 2026 14:15:13 +0000 (10:15 -0400)
commit8b9acbe540ea9f320e3590aeb39f46e1b6d840b6
tree7db70a5b209d67c0cedfbba0df3ee1314b0e7a94
parent0a348dd1e2c380c6c35ab04c530746e2f49071da
trivial-httpd: Fix const-correctness of slash pointer

strrchr() returns a 'const char *' when passed a 'const char *'
argument. Declare the local 'slash' variable as 'const char *'
to match, fixing a build failure with clang when
-Werror,-Wincompatible-pointer-types-discards-qualifiers is active.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
src/ostree/ostree-trivial-httpd.c